
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGMultiPassMaterial.h>
#include <OpenSG/OSGMultiPassMaterialBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_MultiPassMaterial_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_MultiPassMaterial()
{
    scope* osg_MultiPassMaterialBase_scope = new scope(
    class_< osg::MultiPassMaterialBase, bases< osg::Material > , boost::noncopyable >("MultiPassMaterialBase", no_init)
//        .def_readonly("MaterialsFieldMask", &osg::MultiPassMaterialBase::MaterialsFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::MultiPassMaterialBase::MTInfluenceMask)
        .def("getClassType", &osg::MultiPassMaterialBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::MultiPassMaterialBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::MultiPassMaterialBase::*)() )&osg::MultiPassMaterialBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::MultiPassMaterialBase::*)() const)&osg::MultiPassMaterialBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::MultiPassMaterialBase::getContainerSize)
        //.def("getMaterials", (osg::MaterialPtr& (osg::MultiPassMaterialBase::*)(const osg::UInt32) )&osg::MultiPassMaterialBase::getMaterials, return_value_policy< copy_const_reference >())
        //.def("getMaterials", (osg::MFMaterialPtr& (osg::MultiPassMaterialBase::*)() )&osg::MultiPassMaterialBase::getMaterials, return_value_policy< copy_const_reference >())
        .def("getMaterials", (const osg::MFMaterialPtr& (osg::MultiPassMaterialBase::*)() const)&osg::MultiPassMaterialBase::getMaterials, return_value_policy< copy_const_reference >())
        .def("getBinSize", &osg::MultiPassMaterialBase::getBinSize)
        .def("copyToBin", &osg::MultiPassMaterialBase::copyToBin)
        .def("copyFromBin", &osg::MultiPassMaterialBase::copyFromBin)
        .def("create", &osg::MultiPassMaterialBase::create)
        .def("createEmpty", &osg::MultiPassMaterialBase::createEmpty)
        .def("shallowCopy", &osg::MultiPassMaterialBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::MultiPassMaterialBase::NextFieldId;
    scope().attr("MaterialsFieldId") = (int)osg::MultiPassMaterialBase::MaterialsFieldId;

    delete osg_MultiPassMaterialBase_scope;

    class_< osg::MultiPassMaterial, bases< osg::MultiPassMaterialBase > , boost::noncopyable, osg::MultiPassMaterialRefPtr >("MultiPassMaterial", no_init)
        .def("changed", &osg::MultiPassMaterial::changed)
        .def("dump", &osg::MultiPassMaterial::dump, osg_MultiPassMaterial_dump_overloads_0_2())
        //.def("draw", (void (osg::MultiPassMaterial::*)(osg::TypedFunctor1Base<osg::Action::ResultE,osg::PtrCallArg<osg::DrawActionBase>,osg::DefaultFunctorSizeTraits>&, osg::DrawActionBase*) )&osg::MultiPassMaterial::draw)
        //.def("draw", (void (osg::MultiPassMaterial::*)(osg::Geometry*, osg::DrawActionBase*) )&osg::MultiPassMaterial::draw)
        .def("makeState", &osg::MultiPassMaterial::makeState)
        .def("rebuildState", &osg::MultiPassMaterial::rebuildState)
        .def("getState", &osg::MultiPassMaterial::getState)
        .def("getNPasses", &osg::MultiPassMaterial::getNPasses)
        .def("isTransparent", &osg::MultiPassMaterial::isTransparent)
        .def("addMaterial", &osg::MultiPassMaterial::addMaterial)
        .def("subMaterial", &osg::MultiPassMaterial::subMaterial)
        .def("hasMaterial", &osg::MultiPassMaterial::hasMaterial)
    ;


    register_ptr_to_python<osg::MultiPassMaterialPtr>();
    implicitly_convertible<osg::MultiPassMaterialRefPtr, osg::MultiPassMaterialPtr>();
    implicitly_convertible<osg::MultiPassMaterialPtr, osg::MaterialPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::MultiPassMaterialPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::MultiPassMaterialPtr>);
}

